package com.google.code.fluentjoiner.io.http;

import com.google.code.fluentjoiner.io.FileObjectSupplierBuilder;
import org.apache.commons.httpclient.HttpClient;

public abstract class HttpFileObjectSupplierBuilder extends FileObjectSupplierBuilder<HttpFileObject>
{
    public static HttpFileObjectSupplierBuilder fromPath(final String path)
    {
        return new HttpFileObjectSupplierBuilder()
        {
            @Override
            protected HttpFileObject getSupplierResult()
            {
                final HttpClient httpClient = new HttpClient();
                return new HttpFileObject(httpClient, path);
            }
        };
    }
}